﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace _20200302lianxi2
{
    public partial class login : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            string se = "";
            if (RadioButton1.Checked)
            {
                se = RadioButton1.Text;
            }
            else if (RadioButton2.Checked)
            {
                se = RadioButton2.Text;
            }
            string yy = "";
            if (CheckBox1.Checked)
            {
                yy += CheckBox1.Text;
            }
            if (CheckBox2.Checked)
            {
                yy += ',' + CheckBox2.Text;
            }
            if (CheckBox3.Checked)
            {
                yy += ',' + CheckBox3.Text;
            }
            if (CheckBox4.Checked)
            {
                yy += ',' + CheckBox4.Text;
            }

            Response.Redirect(string.Format("index.aspx?name={0}&pwd={1}&setpwd={2}&sex={3}&adree={4}&email={5}&phone={6}&zhuan={7}&aihao={8}&bei={9}", TextBox1.Text, TextBox2.Text, TextBox3.Text, se, DropDownList1.Text, TextBox4.Text, TextBox5.Text, ListBox1.SelectedItem.Text, yy,this.TextBox7.Text));
        
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            this.TextBox1.Text = "";
            this.TextBox2.Text = "";
            this.TextBox3.Text = "";
            this.TextBox4.Text = "";
            this.TextBox5.Text = "";
            this.RadioButton1.Checked = false;
            this.RadioButton2.Checked = false;
            this.TextBox5.Text = "";
            this.CheckBox1.Checked = false;
            this.CheckBox2.Checked = false;
            this.CheckBox3.Checked = false;
            this.CheckBox4.Checked = false;
            this.CheckBox5.Checked = false;
            this.ListBox1.SelectedItem.Selected = false;
        }
    }
}